<?php
class ModInscriptionVueDefaut
{
	static function formInscription()
	{
		echo '<h1>Formulaire inscription utilisateur</h1>
			<form name ="input" action="index.php" method="get">
				<input type="hidden" value="Inscription" name="module" />
				<input type="hidden" value="inscription" name="action" />
				pseudo : <input type="text"name="pseudo"></br>
				mail : <input type="text"name="mail" ></br>
				mot de passe : <input type="password"name="mdp"></br>
				
				<INPUT type="submit" value="Envoyer"></br>
				
			</form>';
	
	}
	static function inscription($resultat)
	{
	
		if($resultat ==1 )
			echo'inscription Réussite';
		else
			echo'Erreur lors de l\'inscriprion';
		echo'<script>setTimeout(function () {
       window.location.href = "index.php"; //will redirect to your blog page (an ex: blog.html)
    }, 2000); </script>';
	}



} 